package com.xxx.proj.uoss;

import com.aliyun.oss.OSSClient;
import com.aliyun.oss.OSSClientBuilder;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@EnableDiscoveryClient
public class UOssApplication {

    public static void main(String[] args) {
        SpringApplication.run(UOssApplication.class, args);
    }

    @Bean
    public OSSClient ossClient(){
      return (OSSClient) new OSSClientBuilder()
              .build("oss-cn-beijing.aliyuncs.com"
                      , ""
                      , "");
    }
}
